package com.project.springboot.service.product.impl;

import com.project.springboot.dataobject.Product;
import com.project.springboot.repository.ProductRepository;
import com.project.springboot.service.product.ProductService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Description：商品服务接口实现类
 * Created by 朱正磊 on 2019/3/18 0018 下午 3:53
 */
@Service
public class ProductServiceImpl implements ProductService {

    @Autowired
    private ProductRepository productRepository;

    @Override
    public List<Product> findAll() {
        return productRepository.findAll();
    }
}
